package com.xiaow.springsecuriydemo.mapper;

import com.xiaow.springsecuriydemo.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaow.springsecuriydemo.vo.GoodVo;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xiaow
 * @since 2022-09-17
 */
public interface GoodsMapper extends BaseMapper<Goods> {
    /**
     * 检索出所有的货物
     *
     * @return
     */
    public List<GoodVo> getAllGoods(Integer state);

    public GoodVo getOneById(Integer id);
}
